-
Notifications
You must be signed in to change notification settings - Fork 53
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
auto-set sort direction on sort type change #1315
base: dev
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Blocked by #1316 |
# Conflicts: # lib/components/form/call-taker/date-time-picker.tsx
All is fixed after latest merge! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good!
@@ -32,6 +32,15 @@ export const DepartArriveTypeMap: Record< | |||
NOW: 'DURATION' | |||
} | |||
|
|||
export const DepartArriveDirectionMap: Record< |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe rename to DepartArriveDefaultSortMap
or something like this, to clarify it is a default setting?
Sets ASC/DESC automatically on changing the sort type.
Do we want this behavior like this by default? Curious for opinions